package com.zhm.api.controller;

import com.zhm.api.controller.req.UploadReq;
import com.zhm.base.TestReq;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class TestController {

    @GetMapping(path = "/ping")
    public String ping(){
        return "pong";
    }

    @PostMapping(path = "/test")
    public String test(@RequestBody TestReq req){
        return req.getA();
    }


    @PostMapping(path = "/upload")
    public String upload(UploadReq req){
        return req.getA();
    }
}
